home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 23 / AMIGAplus Sonderheft 23 (2000)(Falke)(DE)[!].iso / Tools / Text-Viewer / MSWordView / examples / testall.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1999-11-06  |  295 b   |  19 lines

  1. #!/bin/sh
  2.  
  3. #the idea here is test all the word docs looking for a crash
  4. #im using this on my 
  5. #
  6. #C.
  7.  
  8. for filename in *
  9.     do
  10.     echo filename is $filename
  11.     ../mswordview $filename -o /tmp/mswv--
  12.     test=$?
  13.     rm -rf /tmp/mswv--*
  14.     echo status is $test
  15.     if [ "$test" != "0" ] ; then
  16.     exit -1
  17.     fi
  18.     done
  19.